// import './assets/main.css'
import '@/styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
//！将插件添加到 pinia 实例上 用于持久化存储数据
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)


const app = createApp(App)

app.use(pinia)
app.use(router)
app.mount('#app')

//！引用懒加载插件,注册
import { lazyPlugin } from '@/directives/index'
app.use(lazyPlugin)
//！引入
import { componentPlugin } from '@/components/index'
app.use(componentPlugin)